#include "OverviewSetting.h"


OverviewSetting::OverviewSetting(QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);

	ui.cmbResampleType->addItem(ResampleTypeMeaning()(ResampleType_Nearest), ResampleType_Nearest);
	ui.cmbResampleType->addItem(ResampleTypeMeaning()(ResampleType_Gauss), ResampleType_Gauss);
	ui.cmbResampleType->addItem(ResampleTypeMeaning()(ResampleType_Average), ResampleType_Average);
	ui.cmbResampleType->addItem(ResampleTypeMeaning()(ResampleType_Average_Magphase), ResampleType_Average_Magphase);

	ui.cmbLevel->setCurrentIndex(2);

}

OverviewSetting::~OverviewSetting()
{

}

ResampleType OverviewSetting::getResampleType() const
{
	return (ResampleType)ui.cmbResampleType->itemData(ui.cmbResampleType->currentIndex()).toInt();
}

int OverviewSetting::getLevel() const
{
	return ui.cmbLevel->currentText().toInt();
}
